package com.xxl.dao;

import com.xxl.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * mapper
 * @author xxl
 * @date 2023/3/11
 */
@Mapper
@Repository
public interface UserMapper {
    int insert(User user);
    int delete(@Param("id")int id);
    int update(@Param("id")int id,@Param("name") String name,@Param("pwd") String pwd);
    List<User> query();
}
